<h1>Cycletestcases List</h1>

<table class="tableList">
  <thead>
    <tr>
      <th>ID</th>
      <th>Cycle Name</th>
      <th>TestCase Name</th>
      <th>Username</th>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($cycletestcases_list as $cycle): ?>
    <?php foreach ($cycle['CycleTestcases'] as $cycletestcases): ?>
    <tr>
      <td><?php echo $cycle['id'] ?></td>
      <td>
      	<a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('cycle/edit?id='.$cycle['id']) ?>')"><?php echo $cycle['name'] ?></a>
      </td>
      <td><a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('testcase/edit?id='.$cycletestcases['idtestcase']) ?>')"><?php echo $cycletestcases['Testcase']['title'] ?></a></td>
      <td><a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('user/edit?id='.$cycletestcases['User']['id'])  ?>')"><?php echo $cycletestcases['User']['username'] ?></a></td>
      <td><a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('cycletestcases/cycleTestCaseById?id=1') ?>')">View Details</a></td>
       <td>
      	<a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('cycletestcases/edit?idcycle='.$cycletestcases['id'].'&idtestcase='.$cycletestcases['idtestcase'].'&userid='.$cycletestcases['User']['id']) ?>')">Edit</a> 
      </td> 
    </tr>
    <?php endforeach; ?>
    <?php endforeach; ?>
  </tbody>
</table>

  <div id="divDescription"></div>
